﻿<%@ Page Language="C#" AutoEventWireup="True" MasterPageFile="~/YUIAspNet.Master" CodeBehind="Default.aspx.cs" Inherits="YUIAspNetDemo.ColorPicker.General" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<title>YUIAsp.Net Controls : LiveDemo : ColorPicker : Usage info</title>
<style type="text/css">
    .colorPickerContainer { border: solid 1px #000000; display:block; clear:both; float:left; width:400px; height:200px}
    .colorPickerAjax .hd {display:none;}
</style>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>General</h1>
    
    <p>The YUIAsp.Net ColorPicker control is an easy to use control, with both client and server API.
            In this example you see it in action. Note that by having a postback, the previously selected color is preserved.</p>
    
    <div style="float:left">
        <div style="display:block; float:left; clear:both">
            <yui:Button ID="btnPost" Text="Do Postback" runat="server" />
            
            <yui:ColorPicker ID="cp" ShowWebsafe="true" ShowControls="true" ShowHexSummary="true" ShowRgbControls="true" Color="ActiveBorder" ShowHexControls="true" ShowHsvControls="true" runat="server" CssClass="colorPickerContainer" />
        </div>
    </div>
</asp:Content>
